package com.dragee.modules.work.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragee.config.resolver.LongJsonDeserializer;
import com.dragee.config.resolver.LongJsonSerializer;
import com.dragee.utils.excel.FieldDispose;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 培训报名
 * 
 * @author tc
 * @email tc@mail.com
 * @date 2023-05-25 15:19:06
 */
@Data
@TableName("t_join")
public class JoinEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @ExcelIgnore
    private Long id;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "title")
        private String title;
    /**
     * 培训ID
     */
    @ExcelProperty(value = "培训ID")
    @FieldDispose(value = "trainId")
        private String trainId;
    /**
     * 培训名
     */
    @ExcelProperty(value = "培训名")
    @FieldDispose(value = "trainName")
        private String trainName;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "projectId")
        private String projectId;

    private String mark;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "projectName")
        private String projectName;
    /**
     * 报名人
     */
    @ExcelProperty(value = "报名人")
    @FieldDispose(value = "name")
        private String name;
    /**
     * 报名电话
     */
    @ExcelProperty(value = "报名电话")
    @FieldDispose(value = "tel")
        private String tel;
    /**
     * 报名身份证
     */
    @ExcelProperty(value = "报名身份证")
    @FieldDispose(value = "idCard")
        private String idCard;
    /**
     * 报名单位
     */
    @ExcelProperty(value = "报名单位")
    @FieldDispose(value = "unit")
        private String unit;
    /**
     * 报名时间
     */
    @ExcelProperty(value = "报名时间")
    @FieldDispose(value = "joinTime")
        private Date joinTime;
    /**
     * 单间 || 标间
     */
    @ExcelProperty(value = "单间 || 标间")
    @FieldDispose(value = "roomType")
        private String roomType;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "entryCost")
        private BigDecimal entryCost;
    /**
     * 总费用
     */
    @ExcelProperty(value = "总费用")
    @FieldDispose(value = "cost")
        private BigDecimal cost;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "invoiceTitle")
        private String invoiceTitle;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "invoiceTaxNumber")
        private String invoiceTaxNumber;

    private String province;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "invoiceTel")
        private String invoiceTel;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "invoiceBank")
        private String invoiceBank;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "invoiceBankAddress")
        private String invoiceBankAddress;
    /**
     * 收件人
     */
    @ExcelProperty(value = "收件人")
    @FieldDispose(value = "mailPerson")
        private String mailPerson;
    /**
     * 收件人电话
     */
    @ExcelProperty(value = "收件人电话")
    @FieldDispose(value = "mailTel")
        private String mailTel;
    /**
     * 收件地址
     */
    @ExcelProperty(value = "收件地址")
    @FieldDispose(value = "mailAddress")
        private String mailAddress;
    /**
     * 状态(草稿 待缴费 待审核 已退回 已通过)
     */
    @ExcelProperty(value = "状态(草稿 待缴费 待审核 已退回 已通过)")
    @FieldDispose(value = "status")
        private String status;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "rejectCause")
        private String rejectCause;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private String createBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date createTime;
    /**
     * 修改人
     */
    @TableField(fill = FieldFill.UPDATE)
    @ExcelIgnore
    private String updateBy;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @ExcelIgnore
    private Date updateTime;
    /**
     * 排序字段
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Long sort;


    @TableField(exist = false)
    private String filePayUrl;
    @TableField(exist = false)
    private String filePayName;
    @TableField(exist = false)
    private String fileId;
    }